const Rules = {
  tel: [
    {
      required: true,
      message: '请输入手机号码',
      trigger: 'onBlur'
    },
    {
      // 自定义校验规则
      validator: value => {
        return /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/.test(
          value
        )
      },
      message: '请输入正确格式的手机号码',
      trigger: 'onBlur'
    }
  ],
  tel2: [
  
    {
      // 自定义校验规则
      required: false,
      validator: value => {
        return /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/.test(
          value
        )
      },
      message: '请输入正确格式的手机号码',
      trigger: 'onChange'
    }
  ],
  email: [
    // { required: false, message: '请填写您的邮箱！' ,trigger: 'onBlur' },
    // { pattern: /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/, message: '邮箱格式错误！'trigger: 'onBlur'}
  ]
}
